from django.conf.urls import url, include
from .views import *

urlpatterns = [
    # url(r'^infos/$',views.ProvienceAPIView.as_view(),name='infos'),
]
# 添加省市区信息查询路由

# 1.导入
from rest_framework.routers import DefaultRouter
# 2.创建实例 router
router = DefaultRouter()
# 3.注册
router.register(r'infos',AreaModelViewSet,base_name='area')
# 4.添加
urlpatterns += router.urls